package com.beijing.serviceImpl.memberServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.beijing.dao.memberDao.MemberMapper;
import com.beijing.entity.Members;
import com.beijing.service.memberService.IMemberService;

@Service("memberService")
@Scope(value = "prototype")
public class MemberServiceImpl implements IMemberService {

    @Autowired
    private MemberMapper memberMapper;

    @Override
    public List<Members> getMembersList() {
        return memberMapper.getMembersList();
    }

    @Override
    public boolean insertMembersToDB(Members member) {
        return memberMapper.insertMembersToDB(member);
    }

}
